package com.yuexunit.finance.seal.entity.lexion;

/**
 * @author NTBK-021-1006
 *
 */
public enum SignStateEnum {

	WAIT_SIGN("待签署"), SIGN_SUCCESS("签署成功"), SIGN_FAILURE("签署失败"), CANCEL("已取消");

	private final String paramType;

	private SignStateEnum(String paramType) {
		this.paramType = paramType;
	}

	public String getValue() {
		return paramType;
	}

	/**
	 * 数字转为枚举类型
	 * @param value 签署状态 0-待签署 1-签署成功 2-签署失败 3-已取消
	 * @return 参数类型枚举
	 */
	public static SignStateEnum valueOf(Integer value) {
		if (value == null || values().length <= value.intValue()) {
			return WAIT_SIGN;
		}
		return values()[value.intValue()];
	}
}
